
package ch.hearc.coursJava.examen.dessin;

import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import java.io.Serializable;


/**
 *
 * @author raphael.capocasa
 *
 */
public class MyThread implements Serializable
	{

	/**
     * 
     */
    private static final long serialVersionUID = -3355919755288001440L;

    /*------------------------------------------------------------------*\
	|*							Constructeurs							*|
	\*------------------------------------------------------------------*/
	public MyThread(Thread thread)
		{
		this.thread = thread;
		}

	public Thread getThread()
		{
		return this.thread;
		}

	/*------------------------------*\
	|*		Serialisation			*|
	\*------------------------------*/
	private void writeObject(ObjectOutputStream out) throws IOException
		{
		out.writeObject(this.thread);
		}

	private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException
		{
		Thread thread = (Thread)in.readObject();
		this.thread = thread;
		}

	/*------------------------------------------------------------------*\
	|*							Attributs Private						*|
	\*------------------------------------------------------------------*/
	private Thread thread;
	}

